package com.libre.auth.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.libre.common.base.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 庞留杰
 * @version V1.0
 * @description 登录日志
 * @date 2020/7/22 15:21
 **/
@Data
@TableName(value = "sys_login_log")
public class LoginLog extends BaseEntity implements Serializable {

    private String username;//用户名
    private String ip;//ip
    private String area;//区域
    private String city;//城市

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginTime;//登录时间

    private String system;//系统名称
    private String browser;//浏览器名称
    private String operator;//运营商

}
